package org.itboys.shop.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.itboys.framework.spring.controller.BaseController;
import org.itboys.shop.service.CodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 商家账号 
 * @author weisky
 *
 */
@RestController
@RequestMapping("/test")
public class TestController extends BaseController{

    @Autowired
    private CodeService codeService;

    /**
     * 总平台：跳转到商家账号页面
     * @param request
     * @param response
     * @return
     */
    @RequestMapping("/send")
    public void send(HttpServletRequest request, HttpServletResponse response) {
    	try {
    		codeService.sendCode("18768194893");
		} catch (Exception e) {
			logger.error("",e);
		}
    	
    }


}
